package com.frxuexi.park2209_2.video.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.base.bean.VideoBeanItem
import com.frxuexi.park2209_2.R

class VideoAdapter:BaseQuickAdapter<VideoBeanItem,BaseViewHolder>(R.layout.item_video) {
    override fun convert(helper: BaseViewHolder, item: VideoBeanItem) {
        helper.setText(R.id.video_title,item.caption)
        Glide.with(context).load(item.videomainimg).into(helper.getView(R.id.video_img))
    }
}